//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package baseokio;

import java.io.IOException;

public abstract class ForwardingSource implements Source {
  private final Source delegate;
  
  public ForwardingSource(Source delegate) {
    if (delegate == null) {
      throw new IllegalArgumentException("delegate == null");
    } else {
      this.delegate = delegate;
    }
  }
  
  public final Source delegate() {
    return this.delegate;
  }
  
  public long read(Buffer sink, long byteCount) throws IOException {
    return this.delegate.read(sink, byteCount);
  }
  
  public Timeout timeout() {
    return this.delegate.timeout();
  }
  
  public void close() throws IOException {
    this.delegate.close();
  }
  
  public String toString() {
    return this.getClass().getSimpleName() + "(" + this.delegate.toString() + ")";
  }
}
